package com.it_labs.zookeeper.lock;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.concurrent.TimeUnit;

public class B {
    public static void main(String[] args) throws InterruptedException {
        ZookeeperLock zookeeperLock = new ZookeeperLock();
        Lock lock = zookeeperLock.lock("100", Long.MAX_VALUE);
        System.out.println("拿到锁");
        TimeUnit.SECONDS.sleep(10);
        zookeeperLock.unlock(lock);
    }
}
